package com.kystar.muxplayer.protocol.code.set;

import com.kystar.muxplayer.protocol.CodeCmd;
import java.io.InvalidObjectException;

public class CS11_PgmConfig extends CodeCmd {
//    1	正常
//    2	黑屏
//    3	画面活动
//    4	画面静止
    private CS11_PgmConfig(int operate) {
        super(operate,CODE_OK);
    }

    @Override
    public byte getCode() {
        return 0x11;
    }

    @Override
    public void checkResult() throws InvalidObjectException {
        verify(mResult[1],CODE_OK,"check");
    }

    @Override
    public void test() {
        mResult = new byte[]{};
    }

    public static CS11_PgmConfig createFreeze(boolean b) {
        return new CS11_PgmConfig(b?4:3);
    }

    public static CS11_PgmConfig createBlack(boolean b) {
        return new CS11_PgmConfig(b?2:1);
    }
}
